package businessLogic;

import enums.BLToViewResultMessage;
import vo.BookInfoVO;
import businessLogicService.BookBLService;

public class BookController implements BookBLService {

	@Override
	public BLToViewResultMessage addBook(BookInfoVO bookInfo) {
		if (bookInfo != null) {
			return BLToViewResultMessage.ADD_BOOK_SUCCESS;
		}
		return null;
	}

	@Override
	public BLToViewResultMessage deleteBook(int bookID) {
		if (bookID > 0) {
			return BLToViewResultMessage.DELETE_BOOK_SUCCESS;
		}
		return null;
	}

	@Override
	public BLToViewResultMessage modify(int bookID, BookInfoVO bookInfo) {
		if (bookID > 0) {
			return BLToViewResultMessage.MODIFY_BOOK_SUCCESS;
		}
		return null;
	}

}
